<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>difftime</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_000_003_085">&nbsp;</a>NAME</h4><blockquote>
difftime - compute the difference between two calendar time values
</blockquote><h4><a name = "tag_000_003_086">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="time.h.html">time.h</a>&gt;

double difftime(time_t <i>time1</i>, time_t <i>time0</i>);
</code>
</pre>
</blockquote><h4><a name = "tag_000_003_087">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>difftime()</i>
function computes the difference between two calendar times (as
returned by
<i><a href="time.html">time()</a></i>):
<i>time1</i>
-
<i>time0</i>.
</blockquote><h4><a name = "tag_000_003_088">&nbsp;</a>RETURN VALUE</h4><blockquote>
The
<i>difftime()</i>
function returns the difference expressed in seconds as a type
<b>double</b>.
</blockquote><h4><a name = "tag_000_003_089">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_000_003_090">&nbsp;</a>EXAMPLES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_003_091">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_003_092">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_003_093">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="asctime.html">asctime()</a></i>,
<i><a href="clock.html">clock()</a></i>,
<i><a href="ctime.html">ctime()</a></i>,
<i><a href="gmtime.html">gmtime()</a></i>,
<i><a href="localtime.html">localtime()</a></i>,
<i><a href="mktime.html">mktime()</a></i>,
<i><a href="strftime.html">strftime()</a></i>,
<i><a href="strptime.html">strptime()</a></i>,
<i><a href="time.html">time()</a></i>,
<i><a href="utime.html">utime()</a></i>,
<i><a href="time.h.html">&lt;time.h&gt;</a></i>.
</blockquote><h4>DERIVATION</h4><blockquote>
Derived from the ISO C standard.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>

